<?php
// R0910CMS 
// created by TLightSky
// time : 20100120

if(!defined("IN_R0910CMS")) {
    exit("Access Denied!");
}

class Admin_DbModel_Website extends R_Db_Row {
	function init(){
		$this->tableName   = getInstance('Admin_Manage')->getConfig('sitepre')."website";
        
		$this->col['id'] = &R_Db_CellFactory::get(R_Db_DataCheck::INTEGER,10);
        $this->col['id'] ->setPrimary()
                           ->setNotNull()
                           ->setUnsigned();
                           
        $this->col['name'] = &R_Db_CellFactory::get(R_Db_DataCheck::STRING,50);
        $this->col['name'] ->setNotNull();
                           
        $this->col['path'] = &R_Db_CellFactory::get(R_Db_DataCheck::STRING,50);
        $this->col['path'] ->setNotNull();
        
        $this->col['description'] = &R_Db_CellFactory::get(R_Db_DataCheck::STRING,255);
		$this->col['copyright'] = &R_Db_CellFactory::get(R_Db_DataCheck::STRING,30);
        $this->col['version'] = &R_Db_CellFactory::get(R_Db_DataCheck::STRING,15);
	}
}
